export default {
    namespace: 'itemMenuModel',
    state: {
        initItemSer: null
    },
    reducers: {
        setInitItemSer(state, action) {
            return {
                ...state,
                initItemSer: action.payload
            };
        }
    },
    effects: {
        *initItemSer(state, { put }) {
            yield put({
                type: 'setInitItemSer',
                payload: state.payload
            });
            state.callback();
        }
    }
};
